package com.java.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author lizhilong
 * @create 2019/12/15 22:41
 * @desc
 */
@RestController
public class TestController {

    @GetMapping("/test/map")
    public Map testMap() {
        Map<String, String> map = new HashMap<>();
        map.put("姓名", "李志龙");
        map.put("性别", "男");
        return map;
    }
}
